.code-bar
  ul.actions.list-inline
    li.dropdown(dropdown="", ng-show='frame.type == "http"')
      a.button.sl.sl-download-drive.dropdown-toggle(dropdown-toggle="")
      ul.dropdown-menu
        li
          a(exportable ng-click='exportJSON(frame.response)') Download JSON
    li.dropdown(dropdown="", ng-show='frame.type == "shell"')
      a.button.sl.sl-download-drive.dropdown-toggle(dropdown-toggle="")
      ul.dropdown-menu
        li
          a(exportable ng-click='exportText(frame.response)') Download TXT
    li.dropdown(dropdown="", ng-show='frame.type == "cypher"')
      a.button.sl.sl-download-drive.dropdown-toggle(dropdown-toggle="", tooltip-placement='bottom', tooltip="Export to file")
      ul.dropdown-menu
        li
          a(exportable ng-click='exportGraphSVG()', ng-show='isActive("graph")') Export SVG
          a(exportable ng-click='exportPlanSVG()', ng-show='isActive("plan")') Export SVG
          a(exportable ng-click='exportGraphPNG()', ng-show='isActive("graph")') Export PNG
          a(exportable ng-click='exportPlanPNG()', ng-show='isActive("plan")') Export PNG
          a(exportable ng-click='exportJSON(frame.response.table._response)') Export JSON
          a(exportable ng-click='exportCSV(frame.response.table)') Export CSV
    li
      a.button.sl.sl-pin(ng-click='pin(frame)', ng-class="{pinned: pinned}", tooltip-placement='bottom', tooltip='Pin at top')
    li
      a.button.sl.sl-scale-spread(ng-click="toggleFullscreen(true)", tooltip-placement='bottom', tooltip='Fullscreen', ng-show='frame.fullscreenable')
    li
      a.button.sl.sl-delete(ng-click='frames.close(frame)', tooltip-placement='bottom', tooltip='Cancel and close')
  .status
    span.prompt.code(ng-if='frame.type == "cypher"') $
    span.code.mono(click-to-code='frame.input') {{frame.input | uncomment}}
  a.close-fullscreen.sl.sl-scale-reduce(ng-click="toggleFullscreen(false)", tooltip='Close Fullscreen', tooltip-placement='bottom')
